package com.jiuwan.gamepass.service;

import com.jiuwan.gamepass.dto.appJson.TotalPackageJson;
import com.jiuwan.gamepass.dto.appJson.TotalUrlListJson;
import org.springframework.web.multipart.MultipartFile;

/**
 * @version 1.0
 * 功能目的描述 ：用于         ========>>>>>>>>>>>
 * @author： pang-yun
 * @date： 2021-06-11 14:11
 */

public interface SDKUploadService {

    //  sdk文件以及脚本上传
    TotalPackageJson uploadFile(MultipartFile[] sdks, String appID);


    //上传sdkController
    TotalPackageJson upLoadFile(MultipartFile sdkController, String appID);

    //上传icon
    TotalPackageJson uploadIcon(MultipartFile[] icons,String appID);

    //上传唯一一张background
    TotalPackageJson uploadBackGround(MultipartFile background,String appID,String size);

    //素材上传
    TotalPackageJson uploadMaterial(MultipartFile[] materials, String appID);



    //==================================上传接口部分============
    //
    //  多文件以及脚本上传
    TotalPackageJson uploadManyFile(MultipartFile[] files);

    //单文件上传
    TotalPackageJson uploadSingleFile(MultipartFile file);

    //上传多张图片
    TotalPackageJson uploadManyImage(MultipartFile[] images,String size);

    //上传单张图片
    TotalPackageJson uploadSingleImage(MultipartFile image,String size);



    //------将地址放到表中----------
    TotalPackageJson setAddressInTotal(String appID,String sdk,String sdkController,
                                       String icons,String backGround,String materials);



    //------------用于返回sdk详细信息并将地址拆分------
    TotalUrlListJson urlPath (String appId);


}
